package com.example.waibao.service;

import com.example.waibao.entity.*;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface materialService {
    void save_building(String imgName, String url, int school_id);

    PageInfo<building> get_building(String imgName, int school_id,int pageNum, int pageSize);

    List<building> getAllImg();

    PageInfo<task> get_task(Integer pageNum, Integer pageSize,int taskId, int type_id);

    void add_a_task(task task);

    void add_task_place(int id, String place, int school_id);

    void save_map(String map, String modal, String scope, String legend, int school);

    List<task_type> get_task_type();

    List<task_place> get_task_place(String thePlace, int schoolId);

    List<task_type> get_task_type1(int i);

    void save_school_map(Object model, String map, Object schoolId,String area);

    void save_school_map_legend(int i,String s, String s1, String s2, String s3, String s4, Object schoolId,
                                String introduce_image,String introduce);

    school_map get_school_map(int schoolId);

    List<school_map_legend> get_school_map_legend(int schoolId);

    List<article> get_article();

    void delete_school_map(int schoolId);

    void delete_school_map_legend(int id);

    void delete_task(int id);

    void update_task(task task);

    List<String> get_places(int id);

    void delete_task_place(int taskId);

//    String get_task_place2(int t, int schoolId);

//    void add_task_place2(String thePlace, int taskId, int schoolId);
}
